package ar.fiuba.tp7552.buildadmin.util;

public class PermissionView extends ResultRow {

	public PermissionView(Object[] tuple, String[] aliases) {
		super(tuple, aliases);
	}
	
	public Long getId() {
		return this.getLong("id");
	}
	
	public String getUsername() {
		return this.getString("username");
	}
	
	public String getNombre() {
		return this.getString("nombre");
	}
	
	public boolean isGasto() {
		return this.getBoolean("gasto");
	}
	
	public boolean isAdmin() {
		return this.getBoolean("admin");
	}
	
	public boolean isCobro() {
		return this.getBoolean("cobro");
	}

}
